<extend name="../layout" />

<block name="main_content">
    <include file="Common:SettingsHeader:dashboard" />
    <div class="row-fluid">
        <div class="widget-box">
            <div class="widget-title bg_lg"><span class="icon"><i class="icon-signal"></i></span>
                <h5>Site Analytics</h5>
            </div>
            <div class="widget-content" >
                <div class="row-fluid">
                    <div class="span9">
                        <div id="chart1" style="height:220px;"></div>
                    </div>
                    <div class="span3 quick-actions">
                        <ul class="site-stats">
                            <li class="bg_lh"><a href="javascript:displayCharts.saleDaysLine('#chart1', 10);"><i class="icon-bar-chart"></i> 销售走势</a></li>
                            <li class="bg_lh"><a href="javascript:displayCharts.stockinDaysLine('#chart1', 10);"><i class="icon-bar-chart"></i> 入库走势</a></li>
                            <li class="bg_lh"><a href="javascript:displayCharts.saleDaysLine('#chart1', 10);"><i class="icon-bar-chart"></i> 出库走势</a></li>
                            <li class="bg_lh"><a href="javascript:displayCharts.stockinDaysLine('#chart1', 10);"><i class="icon-bar-chart"></i> 退货走势</a></li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
</block>


<block name="footer_js">
    <script type="text/javascript">
        $(function(){
            displayCharts.saleDaysLine("#chart1", 10);
            $.get("{:U('/JXC/Stock/ajax_getWarningNum')}", function(data) {
                $("#stockWarningNum").text(data.num);
            });
        });
    </script>
</block>